#include "PageLib.hpp"


#include "Configuration.h"
#include "DirScanner.h"
#include <fstream>
#include <iostream>

using std::cout;
using std::endl;
using std::ofstream;

Configuration* Configuration::pCnof = nullptr;
Configuration::AutoRelease Configuration::release;


//测试的时候单例模式的初始化应该放在正式运行的main文件下
//不然会报重复定义错误
//
//编译指令
//g++ testPageLib.cc Configuration.cc DirScanner.cc PageLib.cc tinyxml2.cc WebPage.cc
int main()
{
    Configuration* cp = Configuration::getInstance();
    DirScanner dirs;

    PageLib pl(cp, dirs);
 
    pl.create();

    pl.store();


}

